import _fetch from './request'

// 模拟面试条件数据获取
export function interviewFilters () {
  return _fetch({
    url: '/interview/filters'
  })
}
// 获取模拟面试题
export function interviewQuestions (params) {
  return _fetch({
    url: '/interview/questions',
    needToken: true,
    params
  })
}

//提交答案
export function questionsSubmit (data) {
  return _fetch({
    url: '/questions/submit',
    method: 'post',
    needToken: true,
    data
  })
}

// 通过id获取题目详情
export function questionsInfo (id) {
  return _fetch({
    url: '/questions/' + id,
    needToken: true
  })
}
// export { interviewFilters, interviewQuestions }
